

class LoginM {
  LoginM({
    required this.token,
    required this.expire,
    required this.sessionKey,
    required this.userId,
  });

  LoginM.fromJson(dynamic json) {
    token = json['token'];
    expire = json['expire'];
    sessionKey = json['session_key'];
    userId = json['user_id'];
  }

  String? token;
  num? expire;
  String? sessionKey;
  String? userId;

  LoginM copyWith({
    String? token,
    num? expire,
    String? sessionKey,
    String? userId,
  }) =>
      LoginM(
        token: token ?? this.token,
        expire: expire ?? this.expire,
        sessionKey: sessionKey ?? this.sessionKey,
        userId: userId ?? this.userId,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['token'] = token;
    map['expire'] = expire;
    map['session_key'] = sessionKey;
    map['user_id'] = userId;
    return map;
  }
}
